package models

import (
    "time"
)

// GatewayNode 表示网关节点
type GatewayNode struct {
    ID            string        `json:"id"`
    Name          string        `json:"name"`
    Address       string        `json:"address"`
    Status        string        `json:"status"`
    LastHeartbeat time.Time     `json:"last_heartbeat"`
    Version       string        `json:"version"`
    Tags          []string      `json:"tags"`
    Stats         *GatewayStatus `json:"stats"`
}

// GatewayStatus 表示网关状态
type GatewayStatus struct {
    BdevCount      int       `json:"bdev_count"`
    SubsystemCount int       `json:"subsystem_count"`
    CPUUsage      float64   `json:"cpu_usage"`
    MemoryUsage   float64   `json:"memory_usage"`
    StartTime     time.Time `json:"start_time"`
    Uptime        string    `json:"uptime"`
}